import Vue from 'vue'
import App from './App'
import router from './router/index';
import store from './store/store';
import urlApi from './axios/url';
import './assets/css/index.css';

// 全量引入ElementUI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// iView
import iView from 'iview';
import 'iview/dist/styles/iview.css';
// 组件用过call()执行的同步笔记列表时间
import dayjs from '@/assets/js/getDateTimes'
// 更新笔记本列表
import sortWay from '@/assets/js/sortWay'
// message
import message from '@/assets/js/message'
Vue.config.productionTip = false;

Vue.use(ElementUI);

Vue.use(iView);

Vue.use(dayjs);

Vue.use(sortWay);

Vue.use(message);

// 封装Axios
import { getRequest, postRequest, postJSON, post, postToken, multipleRequest } from './axios/http'
Vue.prototype.post = post;
Vue.prototype.getRequest = getRequest;
Vue.prototype.postRequest = postRequest;
Vue.prototype.multipleRequest = multipleRequest;
Vue.prototype.postJSON = postJSON;
Vue.prototype.postToken = postToken;
Vue.prototype.$urlApi = urlApi;

/* eslint-disable no-new */
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app');
